package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.CourseBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.VideoBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.ClubVideoIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class ClubVideoModel extends ClubRetrofitBaseModel implements ClubVideoIface<VideoBean> {
    private Retrofit retrofit;
    private LoginService loginService;

    public ClubVideoModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }
    @Override
    public void getClubVideo(String club_id, ListListener listListener) {
        Call<List<VideoBean>> call = loginService.videoList(club_id);
        callenqueueList(call,listListener);
    }
}
